package edu.ynu.se.xiecheng.achitectureclass.entity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;

@Getter
@Setter
@Entity
@Where(clause = "is_deleted = 0")
public class User extends LogicEntity {
    @Column(unique = true, nullable = false)
    private String username;
    @Column
    private String password;
}